package com.gjy.design.observer.disruptor;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-11-08 09:17:11
 */
public class SystemStatus {
    private final boolean running;
    private final int bufferSize;
    private final long remainingCapacity;
    private final int topicCount;

    public SystemStatus(boolean running, int bufferSize, long remainingCapacity, int topicCount) {
        this.running = running;
        this.bufferSize = bufferSize;
        this.remainingCapacity = remainingCapacity;
        this.topicCount = topicCount;
    }

    // getters
    public boolean isRunning() {
        return running;
    }

    public int getBufferSize() {
        return bufferSize;
    }

    public long getRemainingCapacity() {
        return remainingCapacity;
    }

    public int getTopicCount() {
        return topicCount;
    }
}
